/** * api接口统一管理 */
import { get, post } from './http'


//*********************************用户的微信的**************************//
export const apiWxWorkerLogin     = p => get('/WxWorkClientServlet/workerLogin', p)     //登录
export const apiWxWorkerUserInfo     = p => get('/WxWorkClientServlet/workerUserInfo', p)   //获取用户信息
export const apiWxGetOpenId     = p => get('/WxGongZhongHaoOpenId/getOpenIdByCode', p) //获取openid
export const apiWxUserInfo     = p => get('/WxWorkClientServlet/wxUserInfo', p)     //获取用户信息
export const apiBindOpenIdToExternalUser   = p => post('/WxWorkClientServlet/bindExternalUserToWxUser', p) //绑定ipenid
export const apiShowCouponEvent  = p => post('/WxWorkClientServlet/showCouponEvent', p) //绑定ipenid
export const apiFetchBusinessCouponUrl     = p => get('/WxCouponClientServlet/fetchBusinessCouponUrl', p)//获取商家券的领取url

///////////////////////////////////////其它////////////////////////////////////////////
export const apiCouponListOfBusiness     = p => get('/WxCouponClientServlet/couponListOfBusiness', p) //商家券列表
export const apiCouponDetailOfBusiness     = p => get('/WxCouponClientServlet/couponDetailOfBusiness', p) //商家券详情
